//
//  Alibi.m
//  CarHome
//
//  Created by lanou3g on 15-5-2.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "Alibi.h"
#import "AlibiInfo.h"

@implementation Alibi


- (instancetype)init
{
    self = [super init];
    if (self) {
        _selllist = [[NSMutableArray alloc] initWithCapacity:0];
        _stoplist = [[NSMutableArray alloc] initWithCapacity:0];
    }
    return self;
}

- (void)setSelllist:(NSMutableArray *)selllist {
    for (NSMutableDictionary *item in selllist) {
        AlibiInfo *ai = [[AlibiInfo new] autorelease];
        [ai setValuesForKeysWithDictionary:item];
        [_selllist addObject:ai];
    }
}

- (void)setStoplist:(NSMutableArray *)stoplist {
    for (NSMutableDictionary *item in stoplist) {
        AlibiInfo *ai = [[AlibiInfo new] autorelease];
        [ai setValuesForKeysWithDictionary:item];
        [_stoplist addObject:ai];
    }
}

- (void)dealloc
{
    [_grade release];
    [_peoplenum release];
    [_selllist release];
    [_stoplist release];
    
    [super dealloc];
}

@end
